home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-26 | 4.0 KB | 160 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Select.cpp
- // Release Version: $ ODF 1 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #include "ODFx.hpp"
-
- #ifndef SELECT_H
- #include "Select.h"
- #endif
-
- #ifndef CONTENT_H
- #include "Content.h"
- #endif
-
- #ifndef PART_H
- #include "Part.h"
- #endif
-
- #ifndef DEFINES_K
- #include "Defines.k"
- #endif
-
- // ----- Framework Includes -----
-
- #ifndef FWPRESEN_H
- #include "FWPresen.h"
- #endif
-
- #ifndef FWUTIL_H
- #include "FWUtil.h"
- #endif
-
- // ----- OS Includes -----
-
- #ifndef FWBARRAY_H
- #include "FWBArray.h"
- #endif
-
- // ----- Foundation Layer -----
-
- #ifndef FWSUSINK_H
- #include "FWSUSink.h"
- #endif
-
- #ifndef FWSTREAM_H
- #include "FWStream.h"
- #endif
-
- #ifndef FWSTRING_H
- #include "FWString.h"
- #endif
-
- // ----- OpenDoc Includes -----
-
- #ifndef SOM_Module_OpenDoc_StdProps_defined
- #include <StdProps.xh>
- #endif
-
- // ----- Macintosh Includes -----
-
- #if defined(FW_BUILD_MAC) && !defined(__DRAG__)
- #include <Drag.h>
- #endif
-
- //========================================================================================
- // Runtime information
- //========================================================================================
-
- #ifdef FW_BUILD_MAC
- #pragma segment odfx
- #endif
-
- FW_DEFINE_AUTO(CODFxSelection)
-
- //========================================================================================
- // Constants
- //========================================================================================
-
- const ODPropertyName kODFxPropText = "ODFx:Property:Image";
-
- //========================================================================================
- // CLASS CODFxSelection
- //========================================================================================
-
- //---------------------------------------------------------------------------------------
- // CODFxSelection constructor
- //---------------------------------------------------------------------------------------
-
- CODFxSelection::CODFxSelection(Environment* ev, CODFxContent* content) :
- FW_CSelection(ev, false, false),
- fODFxContent(content)
- {
- }
-
- //---------------------------------------------------------------------------------------
- // CODFxSelection destructor
- //---------------------------------------------------------------------------------------
-
- CODFxSelection::~CODFxSelection()
- {
- }
-
- //---------------------------------------------------------------------------------------
- // CODFxSelection::GetSelectedContent
- //---------------------------------------------------------------------------------------
- // The whole content is always selected
-
- FW_CContent* CODFxSelection::GetSelectedContent(Environment* ev)
- {
- FW_UNUSED(ev);
- return fODFxContent;
- }
-
- //---------------------------------------------------------------------------------------
- // CODFxSelection::ClearSelection
- //---------------------------------------------------------------------------------------
-
- void CODFxSelection::ClearSelection(Environment* ev)
- {
- // Nothing to do
- }
-
- //---------------------------------------------------------------------------------------
- // CODFxSelection::CloseSelection
- //---------------------------------------------------------------------------------------
-
- void CODFxSelection::CloseSelection(Environment* ev)
- {
- FW_UNUSED(ev);
- // Nothing to do
- }
-
- //---------------------------------------------------------------------------------------
- // CODFxSelection::IsEmpty
- //---------------------------------------------------------------------------------------
-
- FW_Boolean CODFxSelection::IsEmpty(Environment* ev) const
- {
- FW_UNUSED(ev);
- // we always have something in our picture buffer
- return false;
- }
-
- //---------------------------------------------------------------------------------------
- // CODFxSelection::SelectAll
- //---------------------------------------------------------------------------------------
-
- void CODFxSelection::SelectAll(Environment* ev)
- {
- FW_UNUSED(ev);
- // Part's data is always "selected"
- }
-
-
-